home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / collect / strlstvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.1 KB  |  87 lines

  1. // strlstvw.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CStringListView form view
  15.  
  16. #ifndef __AFXEXT_H__
  17. #include <afxext.h>
  18. #endif
  19.  
  20. class CStringListView : public CFormView
  21. {
  22. public:
  23.     CStringListView();           // protected constructor used by dynamic creation
  24.     DECLARE_DYNCREATE(CStringListView)
  25.  
  26. // Attributes
  27. public:
  28.     CCollectDoc* GetDocument();
  29.  
  30. // Overrides
  31. public:
  32.     void OnInitialUpdate();
  33.  
  34. // Form Data
  35. public:
  36.     //{{AFX_DATA(CStringListView)
  37. #if defined(_WIN32_WCE_PSPC)
  38.     enum { IDD = IDD_STRING_LIST_PSPC };
  39. #else
  40.     enum { IDD = IDD_STRING_LIST };
  41. #endif        
  42.     CListBox    m_ctlList;
  43.     CString m_strElement;
  44.     //}}AFX_DATA
  45.  
  46. // Attributes
  47. public:
  48.  
  49. // Operations
  50. public:
  51.  
  52. // Overrides
  53.     // ClassWizard generate virtual function overrides
  54.     //{{AFX_VIRTUAL(CStringListView)
  55.     protected:
  56.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  57.     //}}AFX_VIRTUAL
  58.  
  59. // Implementation
  60. protected:
  61.     BOOL FindString(int& nSel, POSITION& pos);
  62.  
  63.     virtual ~CStringListView();
  64. #ifdef _DEBUG
  65.     virtual void AssertValid() const;
  66.     virtual void Dump(CDumpContext& dc) const;
  67. #endif
  68.  
  69.     // Generated message map functions
  70.     //{{AFX_MSG(CStringListView)
  71.     afx_msg void OnAdd();
  72.     afx_msg void OnRemove();
  73.     afx_msg void OnRemoveAll();
  74.     afx_msg void OnUpdateElement();
  75.     afx_msg void OnSelChangeList();
  76.     afx_msg void OnInsertBefore();
  77.     //}}AFX_MSG
  78.     DECLARE_MESSAGE_MAP()
  79. };
  80.  
  81. #ifndef _DEBUG
  82. inline CCollectDoc* CStringListView::GetDocument()
  83.    { return (CCollectDoc*)m_pDocument; }
  84. #endif
  85.  
  86. /////////////////////////////////////////////////////////////////////////////
  87.